﻿<Window x:Class="ReportingManagement.Components.DHIS.DHISInfo"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        mc:Ignorable="d" ResizeMode="NoResize" SizeToContent="WidthAndHeight"
        d:DesignHeight="330" d:DesignWidth="350" WindowStyle="None" 
        MinWidth="400" MinHeight="250"
        WindowStartupLocation="CenterOwner" ShowInTaskbar="False" BorderThickness="5" BorderBrush="LightSteelBlue">
    
    <StackPanel>
        <StackPanel.Resources>
            <Style x:Key="label" TargetType="{x:Type Label}">
                <Setter Property="Foreground" Value="Gray" />
                <Setter Property="FontSize" Value="16" />
            </Style>
            <Style x:Key="value" TargetType="{x:Type Label}">
                <Setter Property="FontWeight" Value="Bold" />
                <Setter Property="FontSize" Value="16" />
            </Style>
        </StackPanel.Resources>
        
        <StackPanel Orientation="Horizontal" Background="LightSteelBlue">
            <Label Content="DHIS System Information" FontSize="20" FontWeight="Bold"/>
        </StackPanel>
        
        <StackPanel Margin="2">
            <StackPanel Orientation="Horizontal">
                <Label Content="Context Path" Style="{StaticResource label}" />
                <Label Content="{Binding contextPath}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Version" Style="{StaticResource label}" />
                <Label Content="{Binding version}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Build Time" Style="{StaticResource label}" />
                <Label Content="{Binding buildTime}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Server Date" Style="{StaticResource label}" />
                <Label Content="{Binding serverDate}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Environment Variable" Style="{StaticResource label}" />
                <Label Content="{Binding environmentVariable}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="User Agent" Style="{StaticResource label}" />
                <Label Content="{Binding userAgent}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Calendar" Style="{StaticResource label}" />
                <Label Content="{Binding calendar}" Style="{StaticResource value}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Date Format" Style="{StaticResource label}" />
                <Label Content="{Binding dateFormat}" Style="{StaticResource value}"/>
            </StackPanel>
        </StackPanel>
        <StackPanel Background="LightSteelBlue">
            <Button Margin="5" Content="OK" IsDefault="True" Click="btnOK_Click" />
        </StackPanel>
    </StackPanel>
</Window>
